package com.hec.yygh.hosp.controller;

import com.hec.yygh.common.result.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/yygh/user")
public class UserController {

    @PostMapping("/login")
    public R login(){
        return R.ok().data("token","admin-token");
    }

    @GetMapping("/info")
    public R info(String token){
        return R.ok().data("params",token);
    }

}
